home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ WinNT AutoLogin NW Settings.xpl < prev    next >
Text File  |  1999-08-29  |  1KB  |  51 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Network\Login\Auto Login (NetWare)"
  5. "NAME"="Settings"
  6. "VERSION"="1.00"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="User name"
  9. "TEXT 2"="Password"
  10. "DESCRIPTION 1"="Auto login can be used to eliminate the "Press Ctrl+Alt+Del to login" screen."
  11. "DESCRIPTION 2"="Enter your users information here."
  12. "DESCRIPTION 3"="When you are finished, apply your changes and select the "General" plug-in to activate auto logon."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17.  
  18. sRP="HKLM\SOFTWARE\NOVELL\NWGINA\Login\"
  19. Sub Plugin_Initialize 
  20.  if RegPathExists(sRP) then
  21.   s=RegReadValue(srp&"DefaultNetWareUserName")
  22.   SetUIElement 1,s
  23.  
  24.   s=RegReadValue(srp&"DefaultNetWarePassword")
  25.   SetUIElement 2,s
  26.  else
  27.   Disable
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  s=GetUIElement(1)
  37.  Call RegWriteValue(srp&"DefaultNetWareUserName",s,1)
  38.  
  39.  s=GetUIElement(2)
  40.  Call RegWriteValue(srp&"DefaultNetWarePassword",s,1)
  41.  
  42.  
  43.  Call Logoff()
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.  
  49.  
  50.  
  51.